package com.kaifamiao.loginmodel;
import com.kaifamiao.loginmodel.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public UserEntity getUserByName(String username) {
        return userMapper.findByName(username);
    }

}